package com.newlink.building.userinfo.mvp.contract

import com.newlink.building.common_base.base.IModel
import com.newlink.building.common_base.base.IPresenter
import com.newlink.building.common_base.base.IView
import com.newlink.building.common_base.model.bean.HttpResult
import com.newlink.building.common_base.model.bean.MessageReadRequest
import com.newlink.building.common_base.model.bean.ResponseTopData
import io.reactivex.Observable

/**
 * @author wangyang
 * @date 2022/4/11
 * @description 我的——消息中心——消息详情页面的Contract
 */
interface Module_UserInfo_MessageCenterDetailContract {

    interface Model : IModel {
        fun setMessageReadStatus(request: MessageReadRequest): Observable<HttpResult<ResponseTopData>>
    }

    interface View : IView {
        fun setMessageReadStatusSuccess()
        fun setMessageReadStatusFail()
    }

    interface Presenter : IPresenter<View> {
        fun setMessageReadStatus(request: MessageReadRequest)
    }
}